<div class="layui-main">
    {foreach name="data" item="vo"}
    <div class="layui-form-item">
        <input type="hidden" name="sys[{$vo.id}][id]" value="{$vo.id}">
        <input type="hidden" name="sys[{$vo.id}][sys_code]" value="{$vo.sys_code}">
        <label class="layui-form-label">{$vo.view_name}：</label>
        {switch name="vo.type"}
        {case value="textarea"}
        <div class="layui-input-block">
            <textarea name="sys[{$vo.id}][sys_value]" class="layui-textarea">{$vo.sys_value}</textarea>
            <span style="color: #FFB800;">{$vo.describe}</span>
        </div>
        {/case}
        {case value="img"}
        <div class="layui-input-block img_{$vo.sys_code}" style="text-align: center;">
            <input type="hidden" name="sys[{$vo.id}][sys_value]" value="{$vo.sys_value|default='__STATIC__/img/logo-w.png'}">
            <img src="{$vo.sys_value|default='__STATIC__/img/logo-w.png'}" class="tpl-img-avatar">
        </div>
        {/case}
        {case value="radio"}
        <div class="layui-input-block">
            {foreach name="vo.value_range" item="ra" key="ra_key"}
            <input type="radio" name="sys[{$vo.id}][sys_value]" value="{$ra}" title="{$ra_key}" class="layui-input"
            {eq name="ra" value="$vo.sys_value"} checked {/eq}>
            {/foreach}
            <span style="color: #FFB800;">{$vo.describe}</span>
        </div>
        {/case}
        {case value="password"}
        <div class="layui-input-block">
            <input type="password" style="position: absolute; top: -999px"/><!--禁止浏览器自动填充密码-->
            <input type="password" name="sys[{$vo.id}][sys_value]" value="{$vo.sys_value}" class="layui-input">
            <span style="color: #FFB800;">{$vo.describe}</span>
        </div>
        {/case}
        {default /}
        <div class="layui-input-block">
            <input type="text" name="sys[{$vo.id}][sys_value]" value="{$vo.sys_value}" class="layui-input">
            <span style="color: #FFB800;">{$vo.describe}</span>
        </div>
        {/switch}
        </div>
    {/foreach}
</div>